<?php 
class Mod_manager extends PNC_Model{
	public function __construct(){
		parent::__construct();
		}
	public function home(){
		$query= $this
				->db
				->select('*')
				->from('pnc_record')
				->join('pnc_employee','pnc_employee.staff_id = pnc_record.staff_id')
//				->join('pnc_group','pnc_employee.grp_id = pnc_group.grp_id')			
				->join('pnc_leave_type','pnc_leave_type.lea_id = pnc_record.lea_id')			
				->join('pnc_cup_des','pnc_record.catch_desc = pnc_cup_des.desc_id')				
				//->where('emp_status', 1)
				->get();
				if ($query->num_rows() > 0) {
			foreach ($query->result() as $row_manager) {
				$data[] = $row_manager;
			}
			return $data;
		}
		return FALSE;
				
		
		}
	}